package com.easyapi.common.emun;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @author: zhuyu
 * @Time: 14:51
 * @ClassName: InterfaceStatusEnum
 */
@AllArgsConstructor
@Getter
public enum InterfaceInfoEnum {
    /**
     * 缓存失效周期
     */
    CACHE_EXPIRY_PERIOD_MIN("分",1),
    CACHE_EXPIRY_PERIOD_HOUR("时",2),
    CACHE_EXPIRY_PERIOD_DAY("天",3),
    CACHE_EXPIRY_PERIOD_WEEK("周",4),
    CACHE_EXPIRY_PERIOD_MONTH("月",5),
    /**
     * 参数配置模式
     */
    PARAM_CFG_TYPE_GENERATOR("向导模式",0),
    PARAM_CFG_TYPE_SQL("自定义sql",1),
    /**
     * test_status
     */
    UN_COMMIT("未提交",0),
    IS_COMMITED("已提交",1),
    /**
     * api-type
     */
    API_TYPE_GENERATOR("生成",0),
    API_TYPE_REGISTER("注册",1),
    /**
     * api--status
     */
    API_STATUS_INIT("初始化",0),
    API_STATUS_INIT_SUCCESS("初始化成功",1),
    API_STATUS_INIT_FAILED("初始化失败",2),
    API_STATUS_NORMAL("在线",3),
    API_STATUS_BIND("禁用",4),
    API_STATUS_OFFLINE("下线",5),
    API_STATUS_EXAMINE("审核中",6),
    /**
     * req_type
     */
    REQ_TYPE_GET("GET",0),
    REQ_TYPE_POST("POST",1);
    private final String desc;
    private final Integer code;
}
